import java.util.*;
import java.math.BigInteger;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //BigInteger
        String num1 = sc.next(),num2 = sc.next();
        BigInteger NUM1 = new BigInteger(num1);
        BigInteger NUM2 = new BigInteger(num2);
        System.out.println("ADD:"+NUM1.add(NUM2));
        System.out.println("SUBTRACT:"+NUM1.subtract(NUM2));
        System.out.println("MULTIPLY:"+NUM1.multiply(NUM2));
        System.out.println("DIVIDE:"+NUM1.divide(NUM2));
        System.out.println("MODULO:"+NUM1.mod(NUM2));
        System.out.println("REMAINDER:"+NUM1.remainder(NUM2));

        //BigDecimal
        String num3 = sc.next(),num4 = sc.next();
        BigDecimal NUM3 = new BigDecimal(num3);
        BigDecimal NUM4 = new BigDecimal(num4);
        System.out.println("ADD:"+NUM3.add(NUM4));
        System.out.println("SUBTRACT:"+NUM3.subtract(NUM4));
        System.out.println("MULTIPLY:"+NUM3.multiply(NUM4));
        System.out.println("DIVIDE:"+NUM3.divide(NUM4,6));

    }
}